package com.xuecheng.openfeign;

import com.xuecheng.api.media.dto.MediaDTO;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.openfeign.sentinel.MediaApiAgentFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <h4>xuecheng</h4>
 * <p></p>
 *
 * @author : by wujianming
 * @date : 2021-12-16 17:12
 **/
@FeignClient(value = "media-service",fallbackFactory = MediaApiAgentFallBack.class)
public interface Media4Content {
    @GetMapping("/media/l/media/{mediaId}")
    RestResponse<MediaDTO>  getMediaById(@PathVariable Long mediaId);
}
